package graph.undirectedgraph.algraph;

public class EdgeNode {
    private int adjvexData;
    private int weight;
    private EdgeNode next;

    public EdgeNode() {
    }

    public EdgeNode(int adjvexData) {
        this.adjvexData = adjvexData;
    }

    public EdgeNode(int adjvexData, EdgeNode next) {
        this.adjvexData = adjvexData;
        this.next = next;
    }

    public EdgeNode(int adjvexData, int weight, EdgeNode next) {
        this.adjvexData = adjvexData;
        this.weight = weight;
        this.next = next;
    }

    public int getAdjvexData() {
        return adjvexData;
    }

    public void setAdjvexData(int adjvexData) {
        this.adjvexData = adjvexData;
    }

    public EdgeNode getNext() {
        return next;
    }

    public void setNext(EdgeNode next) {
        this.next = next;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
}
